package com.sukaiyi.leetcode._1226the_dining_philosophers;

/**
 * @author sukaiyi
 * @date 2020/06/24
 */
public class DiningPhilosophers {


    public DiningPhilosophers() {

    }

    // call the run() method of any runnable to execute its code
    public void wantsToEat(int philosopher,
                           Runnable pickLeftFork,
                           Runnable pickRightFork,
                           Runnable eat,
                           Runnable putLeftFork,
                           Runnable putRightFork) throws InterruptedException {
        eat.run();
    }
}
